#define _CRT_SECURE_NO_WARNINGS

#include"SList.h"

void Test()
{
	SL* plist = NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPopBack(&plist);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPushFront(&plist, 6);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPrint(plist);

	SListInsert(&plist, SListFind(&plist, 2), 20);
	SListPrint(plist);

	SListErase(&plist, SListFind(&plist, 2));
	SListPrint(plist);

}
int main()
{
	Test();
	return 0;
}